<template>
  <div>
    <el-row :gutter="20">
      <!-- <el-col :span="8" v-if="dataObj.withdrawServeType === 0">
        <div class="haruyuki-flex line-height">
          <div class="label">服务编号：</div>
          <div class="txt">{{dataObj.serveNo}} </div>
        </div>
      </el-col>
      <el-col :span="8" v-if="dataObj.withdrawServeType === 0">
        <div class="haruyuki-flex line-height" >
          <div class="label">服务名称：</div>
          <div class="txt">{{dataObj.serveName}} </div>
        </div>
      </el-col>
      <el-col :span="8" v-if="dataObj.withdrawServeType === 1">
        <div class="haruyuki-flex line-height" >
          <div class="label">租户编号：</div>
          <div class="txt">{{dataObj.tenantCode}} </div>
        </div>
      </el-col>
      <el-col :span="8" v-if="dataObj.withdrawServeType === 1">
        <div class="haruyuki-flex line-height" >
          <div class="label">租户名称：</div>
          <div class="txt">{{dataObj.tenantName}} </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="haruyuki-flex line-height">
          <div class="label">平台类型：</div>
          <div class="txt">{{dataObj.platformName}} </div>
        </div>
      </el-col>
      -->
      <el-col :span="8">
        <div class="haruyuki-flex line-height">
          <div class="label">提现金额：</div>
          <div class="txt">{{dataObj.rowMoney}} 元</div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="haruyuki-flex line-height">
          <div class="label">账户名：</div>
          <div class="txt">{{dataObj.robBankName}}</div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="haruyuki-flex line-height">
          <div class="label">账户号：</div>
          <div class="txt">{{dataObj.robBankNo}}</div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="haruyuki-flex line-height">
          <div class="label">开户行：</div>
          <div class="txt">{{dataObj.robBank}} </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="haruyuki-flex line-height">
          <div class="label">银行账号：</div>
          <div class="txt">{{dataObj.robBankNo}} </div>
        </div>
      </el-col>
      
      <el-col :span="8">
        <div class="haruyuki-flex line-height">
          <div class="label">服务费率：</div>
          <div class="txt">{{dataObj.rowProfitName || 0}} </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="haruyuki-flex line-height">
          <div class="label">服务费：</div>
          <div class="txt">{{dataObj.rowProfitNum || 0}} </div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="haruyuki-flex line-height">
          <div class="label">手续费：</div>
          <div class="txt">{{dataObj.localFee || 0}} 元</div>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="haruyuki-flex line-height">
          <div class="label">实际提现金额：</div>
          <div class="txt">{{dataObj.realAmount || 0}} 元</div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { getDetail } from "@/api/rb-core/oemWithdrawal/oem_withdrawal";
export default {
  props: {
    withdrawCode: {
      type: [String],
      default: "",
    },
  },
  data() {
    return {
      dataObj:{}
    };
  },
  created() {
    this.getDetailApi(this.withdrawCode)
  },
  methods: {
    async getDetailApi(withdrawCode){
      await getDetail(withdrawCode).then(res=>{
        this.dataObj = res.data.data;
      })
    }
  },
};
</script>

<style lang="scss" scoped>
.line-height {
  min-height: 40px;
  line-height: 40px;
  border-bottom: 1px solid #e0eafc;
  user-select: none;
  -moz-user-select: none; /*火狐*/
  -webkit-user-select: none; /*webkit浏览器*/
  -ms-user-select: none; /*IE10*/
  -khtml-user-select: none; /*早期浏览器*/
}

.label{
  width: 120px;
  background-color: #e0eafc;
  text-align: right;
}
.txt{
  padding-left: 10px;
}
</style>